From 7a3a0e080ffd2a9916d294b8a42c3528fb90106d Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Mon, 4 Jan 2021 22:08:25 +0100 Subject: [PATCH] Make vtk9 build-reproducible. (Closes: #977522, #977521) --- debian/patches/97_reproducible_builds.patch | 26 +++++++++++++++++++++ debian/rules | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 debian/patches/97_reproducible_builds.patch diff --git a/debian/patches/97_reproducible_builds.patch b/debian/patches/97_reproducible_builds.patch new file mode 100644 index 000000000..46c71684b --- /dev/null +++ b/debian/patches/97_reproducible_builds.patch @@ -0,0 +1,26 @@ +From c3f5613299c9dfdee66709674a6cafafb6576137 Mon Sep 17 00:00:00 2001 +From: Vagrant Cascadian +Date: Tue, 15 Dec 2020 07:38:56 +0000 +Subject: [PATCH 2/2] doc_class2example.pl: Sort the parsers array. + +Thanks to Bernhard M. Wiedemann . +--- + Utilities/Doxygen/doc_class2example.pl | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Utilities/Doxygen/doc_class2example.pl b/Utilities/Doxygen/doc_class2example.pl +index 3978563..ce8aeca 100755 +--- a/Utilities/Doxygen/doc_class2example.pl ++++ b/Utilities/Doxygen/doc_class2example.pl +@@ -261,6 +261,7 @@ if (exists $args{"parser"}) { + } else { + @parsers = keys %parsers; + } ++@parsers = sort @parsers; + + my $os_is_win = ($^O =~ m/(MSWin32|Cygwin)/i); + my $open_file_as_text = $os_is_win ? O_TEXT : 0; +-- +2.29.2 + + diff --git a/debian/rules b/debian/rules index 5206482fb..3372aaedd 100755 --- a/debian/rules +++ b/debian/rules @@ -86,3 +86,5 @@ override_dh_install: find $(CURDIR)/debian/libvtk9-dev/ -name "libvtkRenderingPythonTkWidgets.so" -exec rm {} \; || true find $(CURDIR)/debian/libvtk9/ -name "*Qt*" -exec rm {} \; || true find $(CURDIR)/debian/libvtk9-dev/usr/include/ -name "Q*" -exec rm {} \; || true + find $(CURDIR)/debian/tmp/usr/share/doc/vtk-9.0/doxygen -name "_formulas.log" -exec rm {} \; || true + find $(CURDIR)/debian/build/Utilities/Doxygen/doc/html -name "_formulas.log" -exec rm {} \; || true -- 2.30.2